body {
    font-family: PingFangSC-Regular, PingFang SC;
    color: @ft-clr-d;
    width: 100%;
    height: 100%;
    min-width: @min-width;;
    p {
        margin: 0;
        padding: 0;
    }
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
}
.bilin-web {
    position: relative;
    font-size: 14px;
    height: 100%;
    min-width: @min-width;;
}

.bilin-web-header {
    position: absolute;
    top: 0;
    left: @nav-width;
    right: 0;
    height: @header-height;
    box-shadow: 0 1px 0 0 @bd-clr-d;
    z-index: 999;
    padding: 0 24px;
    .flex-row-between;
    .entrance-button {
        translation: color .3s;
        cursor: pointer;
        &:hover {
            color: @green;
        }
    }
}

.bilin-web-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: @nav-width;
    background-color: @black-5;
    overflow: hidden;
    overflow-y: overlay;
    .bilin-web-nav-header {
        padding: 32px 24px 26px;
        height: 240px;
        .nav-brand-info {
            width: 100%;
            text-align: center;
        }
    }
    .bilin-web-nav-body {
        &::-webkit-scrollbar {
            display: none;
        }
        overflow: overlay;
        overflow-x: hidden;
        height: calc(100% - 240px - 60px);
        .nav-item {
            width: 100%;
            height: 48px;
            padding: 0 16px 0 24px;
            cursor: pointer;
            .flex-vertical-center();
            .ft-hover()
        }
    }
    .bilin-web-nav-footer {
        height: 60px;
        padding: 12px 0;
        .nav-user-info, .nav-settings-info {
            width: 50%;
            height: 36px;
            .nav-user-name {
                width: 70px;
            }
        }
    }
    .selected {
        color: @green;
    }
    .ant-menu-submenu-title, .ant-menu-item {
        padding-left: 24px !important;
    }
}

.nav-user-popover {
    .ant-popover-inner-content {
        padding: 0;
    }
    .ant-menu-vertical {
        width: 190px;
        border: 0;
    }
}

.bilin-web-middle {
    .bilin-web-sub-nav;
    left: @nav-width;
    z-index: 10;
    background-color: #fff;
}

.bilin-web-right {
    position: absolute;
    top: @header-height;
    bottom: 0;
    left: @nav-width;
    right: 0;
    overflow: overlay;
    padding: 32px;
    &.sub {
        left: @sub-nav-width;
    }
}

.bilin-web-back-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: @header-height;
    box-shadow: 0 1px 0 0 @bd-clr-d;
    z-index: 999;
    background-color: #fff;
    .flex-row-between();
    .back-button {
        cursor: pointer;
        .flex-vertical-center();
    }
}

.bilin-web-body {
    position: relative;
    width: @min-width;
    padding: 32px;
    padding-top: @header-height + 32;
    margin: 0 auto;
    &.with-footer {
        padding-bottom: @footer-height + 20px;
    }
    &.form-page {
        width: @form-page-width;
    }
    &.table-page {
        height: 100%;
        overflow: hidden;
    }

}

.bilin-web-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: @footer-height;
    border-top: 1px solid @bd-clr-d;
    z-index: 999;
    background-color: #fff;
    .flex-center;
    .ant-btn {
        width: 160px;
        height: 48px;
        margin: 0 5px;
    }
}

.custom-sub-nav {
    height: calc(100vh - @header-height);
    @media screen and (max-width: @min-width) {
        height: calc(100vh - @header-height - 15px);
    }
    &:not(.ant-menu-hidden) {
        top: @header-height !important;
        left: @nav-width !important;
    }
    ul {
        height: 100%;
        max-height: 100% !important;
    }
}

.bilin-web-sub-nav {
    position: absolute;
    top: @header-height;
    bottom: 0;
    left: 0;
    width: @sub-nav-width;
    overflow: overlay;
    overflow-x: hidden;
    padding: 16px 8px;
    border-right: 1px solid @bd-clr-d;
    &::-webkit-scrollbar {
        display: none;
    }
    .sub-nav-item {
        width: 100%;
        height: 36px;
        padding: 0 16px;
        cursor: pointer;
        margin-bottom: 5px;
        border-radius: 4px;
        .flex-vertical-center;
        &:hover {
            background: rgba(216, 216, 216, 0.16);
            translation: background .3s;
        }
        &.selected {
            color: @green;
            translation: color .3s;
        }
    }
    .ant-menu-sub.ant-menu-inline{
        background: none !important;
    }
    .ant-menu-inline, .ant-menu-vertical, .ant-menu-vertical-left{
        border-right: none !important;
    }
}

.bilin-web-container {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 24px;
    &.with-breadcrumb {
        padding-top: 70px;
    }
    &.with-footer {
        height: calc(100% - @footer-height);
    }
    .breadcrumb-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 24px;
    }
}

.loading-container.ant-spin-spinning {
    .absolute-fullscreen();
    .flex-center();
    position: fixed;
    z-index: 1040;
    .ant-spin-text {
        margin-left: 20px;
    }
}

.bilin-web-form-bottom-button{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: @header-height;
    box-shadow: 0 0 0 1px @bd-clr-d;
    .flex-vertical-center();
    .form-button-container {
        position: relative;
        width: 100%;
        .form-button {
            margin-right: 32px;
            height: 48px;
            min-width: 120px;
            border-radius: 3px;
            &:last-child {
                margin: 0;
            }
        }
    }
}

.table-scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
    .table-params {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1;
        background-color: #fff;
    }
    .table-list {
        position: absolute;
        bottom: 42px;
        top: 50px;
        left: 0;
        right: 0;
        overflow: hidden;
        overflow-y: overlay;
        &.without-pagination {
            bottom: 10px;
        }
    }
    .table-pagination {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 32px;
        text-align: right;
        z-index: 1;
        background-color: #fff;
    }
}